document.addEventListener('scroll', function() {
    const header = document.querySelector('.header');
    const scrollPosition = window.scrollY;

    if (scrollPosition >= 65) {
        header.classList.add('scrolled');
    } else {
        header.classList.remove('scrolled');
    }
});